﻿using AutoMapper;
using S.Transplantation.Api.Application.Command;
using S.Transplantation.Domain.Models;
using S.Transplantation.Read.Api.Dto;

namespace S.Transplantation.Api.Extensions.AutoMapper
{
    public class ReadProfile : Profile
    {
        public ReadProfile()
        {
            //如果有相同字段的类就写一个这个
            CreateMap<DescendantTransferModel, TransplantationListDto>().ReverseMap();
            CreateMap<AddTransplantationListCommand, DescendantTransferModel>().ReverseMap();

            //CreateMap<CellGrid, CellGrid2>().ReverseMap();//从前往后传输相同字段的值
        }
    }
}